html,
body {
    height: 100%;
}

.view {
    background-color: #f4f4f4;
    height: 100%;
    padding-top: 50px;
    min-width: 320px;
    max-width: 750px;
    margin: 0 auto ;

    // 顶部搜索
    .top_search {
        width: 100%;
        height: 50px;
        background-color: #fff;
        padding: 10px;
        box-sizing: border-box;
        display: flex;
        position: fixed;
        // left: 50%;
        // transform: matrix(-50%);
        left: 0;
        top: 0;
        z-index: 100;
        min-width: 320px;
        max-width: 750px;

        .input {
            flex: 1;
            height: 32px;
            border: 1px solid blue;
            border-radius: 32px;
            box-sizing: border-box;
            font-size: 10px;
            padding-left: 10px;
            line-height: 32px;
            span{
                font-size: 18px;
            }

            input{
                width: 70%;
                margin-bottom: 5px;
                margin-left: 5px;
            }
            input::placeholder {
                color: #999;
                font-size: 14px;
            }
        }
    }

    // 服务列表
    .s_list {
        width: 100%;
        // height: 184px;
        padding: 5px 10px;
        box-sizing: border-box;
        display: flex;
        background-image: linear-gradient(180deg,
                #fff 90%,
                #f4f4f4);

        ul {
            flex: 1;

            &:nth-child(1) {
                border-radius: 10px 0 0 10px;

                li {
                    height: 58px;
                    text-align: center;
                    padding-top: 6px;
                    box-sizing: border-box;
                    background-color: #fff5f1;

                    &:first-child {
                        border-radius: 10px 0 0 0;

                        p {
                            color: #fff;
                        }

                        background-image: linear-gradient(180deg,
                            #FA5956 0%,
                            #FB8650 100%);
                    }

                    a {
                        img {
                            width: 28px;
                            margin-bottom: 4px;
                        }

                        p {

                            font-size: 12px;
                        }
                    }

                }
            }
            &:nth-child(2){
                li {
                    height: 58px;
                    text-align: center;
                    padding-top: 6px;
                    box-sizing: border-box;
                    background-color: #eff9ff;

                    &:first-child {


                        p {
                            color: #fff;
                        }

                        background-image: linear-gradient(180deg,
                            #3C83FA 0%,
                            #50B2FA 100%);
                    }

                    a {
                        img {
                            width: 28px;
                            margin-bottom: 4px;
                        }

                        p {

                            font-size: 12px;
                        }
                    }

                }
            }
            &:nth-child(3){
                li {
                    height: 58px;
                    text-align: center;
                    padding-top: 6px;
                    box-sizing: border-box;
                    background-color: #f2f5ff;

                    &:first-child {

                        p {
                            color: #fff;
                        }

                        background-image: linear-gradient(180deg,
                            #66A4FF 0%,
                            #5E80FF 100%);
                    }

                    a {
                        img {
                            width: 28px;
                            margin-bottom: 4px;
                        }

                        p {

                            font-size: 12px;
                        }
                    }

                }
            }
            &:nth-child(4){
                li {
                    height: 58px;
                    text-align: center;
                    padding-top: 6px;
                    box-sizing: border-box;
                    background-color: #ecfcf8;

                    &:first-child {

                        p {
                            color: #fff;
                        }

                        background-image: linear-gradient(180deg,
                            #2FC3B6 0%,
                            #52D9B3 100%);
                    }

                    a {
                        img {
                            width: 28px;
                            margin-bottom: 4px;
                        }

                        p {

                            font-size: 12px;
                        }
                    }

                }
            }

            &:last-child {
                border-radius: 0 10px 10px 0;
                li {
                    height: 58px;
                    text-align: center;
                    padding-top: 6px;
                    box-sizing: border-box;
                    background-color: #fff9f2;

                    &:first-child {
                        border-radius: 0 10px 0 0;

                        p {
                            color: #fff;
                        }

                        background-image: linear-gradient(180deg,
                            #FFA846 0%,
                            #FF8939 100%);
                    }

                    a {
                        img {
                            width: 28px;
                            margin-bottom: 4px;
                        }

                        p {

                            font-size: 12px;
                        }
                    }

                }
            }
        }
    }

    // 广告区域
    .banner{
        padding: 0 10px;
        box-sizing: border-box;
        display: flex;
        width: 100%;
        height: 148px;
        margin-top: 10px;
        .live{
            flex: 1;
            margin-right: 10px;
            background-color: #fff;
            border-radius: 10px;
            padding: 10px;
            box-sizing: border-box;
            a{
                display: flex;
                img{
                    height: 20px;
                }
                span{
                    font-size: 10px;
                    display: block;
                    width: 78px;
                    height: 18px;
                    background-color: #ffebe3;
                    color: #ff4607;
                    margin-left: 10px;
                    border-radius: 3px;
                    text-align: center;
                    line-height: 18px;
                }
            }
            .image{
                width: 100%;
                border-radius: 10px;
                position: relative;
                margin-top: 8px;
                a{
                    img{
                        height: 84px;
                        width: 100%;
                        border-radius: 10px;
                    }
                }
                .title{
                    width: 46px;
                    height: 14px;
                    line-height: 14px;
                    background-color: rgba(51, 51, 51, .8);
                    border-radius:10px 0 5px 0;
                    color: #fff;
                    font-size: 10px;
                    position: absolute;
                    top: 0;
                    left: 0;
                    text-align: center;
                }
                .content{
                    font-size: 12px;
                    color: #fff;
                    position: absolute;
                    bottom: 8px;
                    left: 6px;
                }
            }
            p{
                color: #f60;
                font-weight: bold;
                margin-top: 4px;
                span:first-child{
                    font-size: 12px;
                }
                span:last-child{
                    font-size: 16px;
                }
            }
        }
        .jingxuan{
            flex: 1;
            background-color: #fff;
            border-radius: 10px;
            padding: 10px;
            box-sizing: border-box;
            .title_jx{
                a{
                    display: flex;
                    img{
                        height: 20px;
                    }
                    .top_title{
                        font-size: 10px;
                        width: 58px;
                        height: 18px;
                        background-color: #fdefd2;
                        color: #ae6e15;
                        text-align: center;
                        line-height: 18px;
                        border-radius: 4px;
                        margin-left: 15px;
                    }
                }
            }
            .pic{
                display: flex;
                .public_box{
                    flex: 1;
                    position: relative;
                    margin-top: 8px;
                    &:first-child{
                        margin-right: 5px;
                    }
                    .smallt{
                        width: 26px;
                        height: 14px;
                        background-image: linear-gradient(
                            270deg,
                            #f8e1bd 0%,
                            #e2c089 100%
                        );
                        color: #663c00;
                        border-radius: 10px 0 5px 0;
                        font-size: 10px;
                        position: absolute;
                        top: 0;
                        left: 0;
                        text-align: center;
                        line-height: 14px;
                    }
                    img{
                        width: 100%;
                        height: 84px;
                        border-radius: 10px;
                    }
                    p{
                        font-size: 10px;
                        margin-top: 8px;
                        &:last-child{
                            width: 68px;
                            word-break: keep-all;
                            overflow: hidden;
                            text-overflow: ellipsis;
                        }
                    }
                }
            }
        }
    }

    // 广告图片
    .banner_image{
        width: 100%;
        height: 100px;
        padding: 10px;
        box-sizing: border-box;
        img{
            width: 100%;
            border-radius: 10px;
        }
    }

    // 电话帮助
    .help{
        display: flex;
        justify-content : center ;
        margin-top: 30px;
        .phone{
            width: 100px;
            height: 30px;
            border: 1px solid #999;
            box-sizing: border-box;
            border-radius: 5px;
            text-align: center;
            line-height: 30px;
            font-size: 12px;
            &:nth-child(2){
                border: none;
                width: 70px;
            }
        }
    }

    // 底部出处
    .foot{
        width: 100%;
        margin-top: 20px;
        .p{
            width: 100%;
            display: flex;
            justify-content : center ;
            position: relative;
            &::after{
                content: '';
                display: block;
                width: 1px;
                height: 14px;
                background-color: #ccc;
                position: absolute;
                top: 0;
                left: 194px;
            }
            span{
                font-size: 12px;
            }
            span:first-child{
                margin-right: 40px;
            }
        }
        .h{
            display: flex;
            justify-content : center ;
            margin-top: 20px;
            span{
                font-size: 10px;
                color: #666;

                &:first-child{
                    margin-right: 10px;
                }
            }
        }
    }

    // 底部导航
    .foot_nav{
        height: 49px;
        width: 100%;
        background-color: #fff;
        position: fixed;
        bottom: 0;
        left: 0;
        
        ul{
            display: flex;
            li{
                flex: 1;
                text-align: center;
                padding-top: 8px;
                box-sizing: border-box;
                &:first-child{
                   span{
                    color: #3C83FA;
                   } 
                }
                span{
                    font-size: 20px;
                }
                p{
                    font-size: 12px;
                    margin-top: 4px;
                }
            }
        }
    }

    // 每日签到
    .day{
        position: fixed;
        bottom: 60px;
        right: 0;
        width: 76px;
        height: 76px;
        a{
            width: 100%;
            img{
                width: 100%;
            }
        }
    }
}